package at.fhooe.stefanirndorfer.event;

import java.util.ArrayList;

import at.fhooe.stefanirndorfer.walls.Wall;

public class GeometryChangedEvent implements Event<GeometryChangedEvent.Listener> {
	
	private ArrayList<Wall> walls;
	
	
	public GeometryChangedEvent(ArrayList<Wall> walls){
		this.walls = walls;
	}
	

	public ArrayList<Wall> getWalls() {
		return walls;
	}

	public void setWalls(ArrayList<Wall> walls) {
		this.walls = walls;
	}



	//embedded listener interface with the specific function call
	public interface Listener extends EventListener {
		public void onGeometryChangedEvent(GeometryChangedEvent geometryChangedEvent);
	}

	@Override
	public void process(Listener eventListener) {
		eventListener.onGeometryChangedEvent(this);
		
	}

}
